package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

@MappingTable(tableName = "ERP_COMPANY")
public class Company extends BaseObject {
    @MappingColumn(columnName = "COMPANY_ID", columnPk = true, columnLength = 32)
    private String companyId;
    @MappingColumn(columnName = "COMPANY_PARENT_ID")
    private String companyParentId;
    @MappingColumn(columnName = "COMPANY_CODE")
    private String companyCode;
    @MappingColumn(columnName = "COMPANY_NAME")
    private String companyName;
    @MappingColumn(columnName = "COMPANY_MOBILE")
    private String companyMobile;
    @MappingColumn(columnName = "COMPANY_CREATE_TIME")
    private Date companyCreateTime;
    @MappingColumn(columnName = "COMPANY_UPDATE_TIME")
    private Date companyUpdateTime;
    @MappingColumn(columnName = "CITY_ID")
    private String cityId;
    @MappingColumn(columnName = "PROVINCE_ID")
    private String provinceId;
    @MappingTable(tableName = "BASE_CITY")
    private City city;
    @MappingTable(tableName="BASE_PROVINCE")
    private Province province;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyParentId() {
        return companyParentId;
    }

    public void setCompanyParentId(String companyParentId) {
        this.companyParentId = companyParentId;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyMobile() {
        return companyMobile;
    }

    public void setCompanyMobile(String companyMobile) {
        this.companyMobile = companyMobile;
    }

    public Date getCompanyCreateTime() {
        return companyCreateTime;
    }

    public void setCompanyCreateTime(Date companyCreateTime) {
        this.companyCreateTime = companyCreateTime;
    }

    public Date getCompanyUpdateTime() {
        return companyUpdateTime;
    }

    public void setCompanyUpdateTime(Date companyUpdateTime) {
        this.companyUpdateTime = companyUpdateTime;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public Province getProvince() {
        return province;
    }

    public void setProvince(Province province) {
        this.province = province;
    }
}
